package top.zhimingw.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.zhimingw.pojo.Admin;

/**
 * @Author:zhimingw
 * @Version 1.0
 * @since 2021/5/30 21:12
 */
@Mapper
public interface AdminMapper {
    /**
    * @Description: 查询单条数据
    * @Param: [id]
    * @return: top.zhimingw.pojo.Admin
    * @Author: zhimingw
    * @Date: 2021/5/30
    */
    Admin queryById(Integer id);

    /**
    * @Description: 修改Admin,根据 admin 的主键修改数据
    * @Param: [admin]
    * @return: int
    * @Author: zhimingw
    * @Date: 2021/5/30
    */
    int update(Admin admin);
}
